Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 2 - Movie Controller Components / Movie Controller Components Reference
Movie Controller Functions / Getting and Setting Movie Controller Time


MCSetDuration

The MCSetDuration function allows your application to set a controller's duration in the case where a controller does not have a movie associated with it.

pascal ComponentResult MCSetDuration (MovieController mc,
                                       TimeValue duration);
mc
Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager's OpenComponent or OpenDefaultComponent function, or from the NewMovieController function (described on page 2-28).
duration
Specifies the new duration for the movie. This duration value must be in the controller's time scale.
DESCRIPTION
The controller's duration remains at this new value until you assign a movie to the controller.

SEE ALSO
You can use the MCGetCurrentTime function, which is described in the next section, to obtain the time scale for the controller.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help